package com.loooooo.pm2024.modules.pm.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.loooooo.pm2024.config.BigIDSerialize;
import com.loooooo.pm2024.data.BaseEntity;

import java.io.Serializable;
import java.util.List;

public class IssueComment extends BaseEntity implements Serializable {

    private String subject;
    private String content;
    @JsonSerialize(using = BigIDSerialize.class)
    private Long ownerId;
    @JsonSerialize(using = BigIDSerialize.class)
    private Long issueId;
    @JsonSerialize(using = BigIDSerialize.class)
    private Long businessId;
    @JsonSerialize(using = BigIDSerialize.class)
    private Long taskId;
    @JsonSerialize(using = BigIDSerialize.class)
    private Long notifyTo;
    private List<IssueComment> commentList;

    private String type;

    private List<Attachment> attachmentList;

    public List<Attachment> getAttachmentList() {
        return attachmentList;
    }

    public void setAttachmentList(List<Attachment> attachmentList) {
        this.attachmentList = attachmentList;
    }
    //id, subject,content,`no`,ownerId,status,urgent,priority,task,

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }


    public Long getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Long ownerId) {
        this.ownerId = ownerId;
    }

    public Long getIssueId() {
        return issueId;
    }

    public void setIssueId(Long issueId) {
        this.issueId = issueId;
    }

    public Long getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public List<IssueComment> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<IssueComment> commentList) {
        this.commentList = commentList;
    }

    public Long getNotifyTo() {
        return notifyTo;
    }

    public void setNotifyTo(Long notifyTo) {
        this.notifyTo = notifyTo;
    }
}
